<?php if(!defined('WANYA_ROOT')) {exit('error!');}?>
<style type="text/css">
	tr {height: 40px}
</style>
<div class=containertitle><b>微信关注后推送信息的编辑</b>
	<?php if(isset($_GET['active_update'])):?><span class="actived">编辑成功。</span><?php endif;?>
</div>
<div class=line></div>
	<form action="wx_push_set.php" name="wxPushForm" id="wxPushForm" method="post" enctype="multipart/form-data">
			<table align="center">
				<tr>
					<td>
						标题：　　
					</td>
					<td>
						<input type="text" name="title" id="title" value="<?php echo($wxPush["title"]);?>" style="width: 600px">
					</td>
				</tr>
				<tr>
					<td>
						缩略图：　　
					</td>
					<td>
						<input type="file" name="picurl" id="picurl" value="">（※图片大小 760px*440px）
					</td>
				</tr>
				<tr>
					<td>
						现缩略图：　　
					</td>
					<td>
						<input type="hidden" name="pre_picurl" value="<?php echo($wxPush["picurl"]);?>">
						<a href="<?php echo($wxPush["picurl"]);?>" target="_blank"><?php echo($wxPush["picurl"]);?></a>
					</td>
				</tr>
				<tr>
					<td valign="top">
						描　　述：　　
					</td>
					<td>
						<textarea rows="5" cols="90" name="description"><?php echo($wxPush["description"]);?></textarea>
					</td>
				</tr>
				<tr>
					<td>链接：</td>
					<td>
						<input type="text" readonly="readonly" name="activity_name" id="activity_name" value="<?php echo $activity_name;?>">　
						<input type="button" value="选择活动"  onclick="openSelectWin('activity','activity_id','activity_name');" class="button">
						<input type="hidden" name="activity_id" id="activity_id" value="<?php echo $activity_id;?>">
					</td>
				</tr>
				<tr>
					<td>
						现链接：　　
					</td>
					<td>
						<input type="hidden" name="pre_url" value="<?php echo($wxPush["url"]);?>">
						<a href="<?php echo($wxPush["url"]);?>" target="_blank"><?php echo($wxPush["url"]);?></a>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="button" name="cancel" value="取消" onclick="formCancel()" class="button">	　　　
						<input type="button" name="confirm" value="确认" onclick="formCheck()" class="button">　　
					</td>
				</tr>
			</table>
			<input type="hidden" name="ID" value="<?php echo($student["ID"]);?>">
			<input type="hidden" name="action" value="<?php echo($action);?>">
			<input type="hidden" name="mode" value="commit">　
		</form>
<script type="text/javascript">
	function formCheck()
	{
		$("#wxPushForm").submit();
	}
	function formCancel()
	{
		history.go(0);
	}
	setTimeout(hideActived,2600);
</script>